package com.springboot.demo;

import com.springboot.demo.enuml.*;
import com.springboot.demo.threadpool.CountingTask;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Optional;
import java.util.concurrent.ForkJoinPool;

@RestController
@SpringBootApplication
public class DemoApplication {

	@RequestMapping("/root")
	String index() {
		return "hello spring boot";
	}

	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
		System.out.println(Level.DI.getMsg());
		//类型转换异常
//		Level byCode = IBaseEnum.getByCode(Level.class, 1);
//		System.out.println(IBaseEnum.getByCode(Level.class,1));
		System.out.println(CeSHi.COM);


	}
}
